package com.glsc.ngateway.common.base.domain.mysql.gateway.platform;

import javax.persistence.*;

/**
 * 功能描述: <br>
 *
 * @author gaojc
 * @date 2020/12/7 15:16
 */
@Entity
@Table(name = "t_user_role", schema = "gatewaydb")
@IdClass(UserRolePK.class)
public class UserRole {
    private Long userId;
    private Long roleId;

    @Column(name = "user_id")
    @Id
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Column(name = "role_id")
    @Id
    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
}
